import java.util.Scanner;

public class OJzz {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String string1 = sc.next();
        String string2 = sc.next();
        int length =string1.length();
        int length1 =string2.length();
        System.out.println("Length of String1"+length);
        System.out.println("Length of String2"+length1);
    }
}
